﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Thingpower.SS.EduOnline.Provider;

namespace Thingpower.SS.EduOnline.WebAPI
{
    [RoutePrefix("eduonline/api/dashboard")]
    public class DashboardController : ApiController
    {
        [HttpGet, Route("hello")]
        public IHttpActionResult GetString()
        {
            return Ok("Hello");
        }

        public IHttpActionResult UsersCount()
        {
            return Ok(UserDAO.GetCount("1 = 1"));
        }
    }
}
